Component({
    properties: {
        goodsInfo: {
            type: null
        },
        activityid: {
            type: null
        }
    },
    data: {
        currentIndex: 0,
        good_list: [],
        vip_level_status: {}
    },
    observers: {
        goodsInfo: function(t) {
            if (t) {
                var e = [];
                if (t.show_push) for (var a = 0; a < t.show_push.length; ) e.push(t.show_push.slice(a, a + 6)), 
                a += 6;
                this.setData({
                    good_list: e,
                    vip_level_status: t.vip_level_status || {}
                });
            }
        }
    },
    lifetimes: {
        attached: function() {
            var t = wx.getStorageSync("langIndex");
            this.setData({
                language: t.en
            });
        }
    },
    methods: {
        swiperChange: function(t) {
            this.setData({
                currentIndex: t.detail.current
            });
        },
        pushGoodGoto: function(t) {
            var e = t.currentTarget.dataset.itemdata;
            wx.navigateTo({
                url: "/packageA/detail_v2/detail_v2?id=" + e.id
            });
        }
    }
});